package day_05;

/**
 * @ClassName Day05Homework_13
 * @Description TODO
 * @Author hp
 * @Date 2021/6/7 18:41
 * @Version 1.0
 **/
public class Day05Homework_13 {
    public static void main(String[] args) {
        int[][] ints = new int[10][];
        ints[0] = new int[1];
        ints[0][0]=1;
        for (int i = 1; i < ints.length; i++) {
            ints[i] = new int[i+1];
            for (int j = 0;j<ints[i].length;j++){
                if(j == 0||j==ints[i].length-1){
                    ints[i][j]=1;
                }else {
                    ints[i][j]=ints[i-1][j-1]+ints[i-1][j];
                }
            }
        }
        for (int i = 0; i < ints.length; i++) {
            for (int j = 0; j < ints[i].length; j++) {
                System.out.print(ints[i][j]+"\t");
            }
            System.out.println();
        }
    }
}
